import request from '@/utils/request'

// 查询审批计划列表
export function listRecords(query) {
  return request({
    url: '/purs/records/list',
    method: 'get',
    params: query
  })
}

// 查询审批计划详细
export function getRecords(flowId) {
  return request({
    url: '/purs/records/' + flowId,
    method: 'get'
  })
}

// 新增审批计划
export function addRecords(data) {
  return request({
    url: '/purs/records',
    method: 'post',
    data: data
  })
}

// 修改审批计划
export function updateRecords(data) {
  return request({
    url: '/purs/records',
    method: 'put',
    data: data
  })
}

// 删除审批计划
export function delRecords(flowId) {
  return request({
    url: '/purs/records/' + flowId,
    method: 'delete'
  })
}



export function sendMsg(remark) {
  return request({
    url: '/purs/records/remarkTest/' + remark,
    method: 'get',
  })
}

